package com.java.service.impl;

import com.java.entity.House;
import com.java.mapper.HouseMapper;
import com.java.service.HouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HouseServiceImpl implements HouseService {
    @Autowired
     HouseMapper houseMapper;

    @Override
    public List<House> findHouse(String city,String estate) {
        return houseMapper.findHouse(city,estate);
    }

    @Override
    public House findHouseById(String houseId) {
        return houseMapper.findHouseById(houseId);
    }

    @Override
    public List<House> selectByHaudit() {
        return houseMapper.selectByHaudit();
    }

    @Override
    public void updateHaudit(Integer houseId) {
        houseMapper.updateHaudit(houseId);
    }
}
